{
SurfaceInfo *info = data;
- _gdk_quartz_drawable_release_context (info->drawable, info->context);
+ gdk_quartz_drawable_release_context (info->drawable, info->context);
g_free (info);
}
GDK_WINDOW_DESTROYED (impl->wrapper))
return NULL;
- context = _gdk_quartz_drawable_get_context (drawable, TRUE);
+ context = gdk_quartz_drawable_get_context (drawable, TRUE);
if (!context)
return NULL;
gint width,
gint height)
{
- CGContextRef context = _gdk_quartz_drawable_get_context (drawable, FALSE);
+ CGContextRef context = gdk_quartz_drawable_get_context (drawable, FALSE);
CGRect rect = CGRectMake (x + 0.5, y + 0.5, width, height);
if (!context)
return;
- _gdk_quartz_update_context_from_gc (context, gc);
+ gdk_quartz_update_context_from_gc (context, gc);
if (filled)
{
- _gdk_quartz_set_context_fill_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
+ gdk_quartz_set_context_fill_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
_gdk_gc_get_fg_pixel (gc));
CGContextFillRect (context, rect);
}
else
{
- _gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
+ gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
_gdk_gc_get_fg_pixel (gc));
CGContextStrokeRect (context, rect);
}
- _gdk_quartz_drawable_release_context (drawable, context);
+ gdk_quartz_drawable_release_context (drawable, context);
}
static void
gint angle1,
gint angle2)
{
- CGContextRef context = _gdk_quartz_drawable_get_context (drawable, FALSE);
+ CGContextRef context = gdk_quartz_drawable_get_context (drawable, FALSE);
float start_angle, end_angle;
if (!context)
return;
- _gdk_quartz_update_context_from_gc (context, gc);
+ gdk_quartz_update_context_from_gc (context, gc);
CGContextSaveGState (context);
if (filled)
{
- _gdk_quartz_set_context_fill_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
+ gdk_quartz_set_context_fill_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
_gdk_gc_get_fg_pixel (gc));
CGContextMoveToPoint (context, 0, 0);
}
else
{
- _gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
+ gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
_gdk_gc_get_fg_pixel (gc));
CGContextAddArc (context, 0, 0, width / 2,
start_angle, end_angle,
CGContextRestoreGState (context);
- _gdk_quartz_drawable_release_context (drawable, context);
+ gdk_quartz_drawable_release_context (drawable, context);
}
static void
GdkPoint *points,
gint npoints)
{
- CGContextRef context = _gdk_quartz_drawable_get_context (drawable, FALSE);
+ CGContextRef context = gdk_quartz_drawable_get_context (drawable, FALSE);
int i;
if (!context)
return;
- _gdk_quartz_update_context_from_gc (context, gc);
+ gdk_quartz_update_context_from_gc (context, gc);
if (filled)
- _gdk_quartz_set_context_fill_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
+ gdk_quartz_set_context_fill_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
_gdk_gc_get_fg_pixel (gc));
else
- _gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
+ gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
_gdk_gc_get_fg_pixel (gc));
CGContextMoveToPoint (context, points[0].x + 0.5, points[0].y + 0.5);
else
CGContextStrokePath (context);
- _gdk_quartz_drawable_release_context (drawable, context);
+ gdk_quartz_drawable_release_context (drawable, context);
}
static void
}
else if (dest_depth != 0 && src_depth == dest_depth)
{
- CGContextRef context = _gdk_quartz_drawable_get_context (drawable, FALSE);
+ CGContextRef context = gdk_quartz_drawable_get_context (drawable, FALSE);
if (!context)
return;
- _gdk_quartz_update_context_from_gc (context, gc);
+ gdk_quartz_update_context_from_gc (context, gc);
CGContextSetBlendMode (context, kCGBlendModeNormal);
GDK_PIXMAP_IMPL_QUARTZ (src_impl)->height),
GDK_PIXMAP_IMPL_QUARTZ (src_impl)->image);
- _gdk_quartz_drawable_release_context (drawable, context);
+ gdk_quartz_drawable_release_context (drawable, context);
}
else
g_warning ("Attempt to draw a drawable with depth %d to a drawable with depth %d",
GdkSegment *segs,
gint nsegs)
{
- CGContextRef context = _gdk_quartz_drawable_get_context (drawable, FALSE);
+ CGContextRef context = gdk_quartz_drawable_get_context (drawable, FALSE);
int i;
if (!context)
return;
- _gdk_quartz_update_context_from_gc (context, gc);
- _gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
+ gdk_quartz_update_context_from_gc (context, gc);
+ gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
_gdk_gc_get_fg_pixel (gc));
for (i = 0; i < nsegs; i++)
CGContextStrokePath (context);
- _gdk_quartz_drawable_release_context (drawable, context);
+ gdk_quartz_drawable_release_context (drawable, context);
}
static void
GdkPoint *points,
gint npoints)
{
- CGContextRef context = _gdk_quartz_drawable_get_context (drawable, FALSE);
+ CGContextRef context = gdk_quartz_drawable_get_context (drawable, FALSE);
int i;
if (!context)
return;
- _gdk_quartz_update_context_from_gc (context, gc);
- _gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
- _gdk_gc_get_fg_pixel (gc));
+ gdk_quartz_update_context_from_gc (context, gc);
+ gdk_quartz_set_context_stroke_color_from_pixel (context, gdk_drawable_get_colormap (drawable),
+ _gdk_gc_get_fg_pixel (gc));
for (i = 1; i < npoints; i++)
{
CGContextStrokePath (context);
- _gdk_quartz_drawable_release_context (drawable, context);
+ gdk_quartz_drawable_release_context (drawable, context);
}
static void
gint x_dither,
gint y_dither)
{
- CGContextRef context = _gdk_quartz_drawable_get_context (drawable, FALSE);
+ CGContextRef context = gdk_quartz_drawable_get_context (drawable, FALSE);
CGColorSpaceRef colorspace;
CGDataProviderRef data_provider;
CGImageRef image;
CGDataProviderRelease (data_provider);
CGColorSpaceRelease (colorspace);
- _gdk_quartz_update_context_from_gc (context, gc);
+ gdk_quartz_update_context_from_gc (context, gc);
CGContextSetBlendMode (context, kCGBlendModeNormal);
CGContextDrawImage (context, CGRectMake (0, 0, pixbuf_width, pixbuf_height), image);
CGImageRelease (image);
- _gdk_quartz_drawable_release_context (drawable, context);
+ gdk_quartz_drawable_release_context (drawable, context);
}
static void
gint width,
gint height)
{
- CGContextRef context = _gdk_quartz_drawable_get_context (drawable, FALSE);
+ CGContextRef context = gdk_quartz_drawable_get_context (drawable, FALSE);
CGColorSpaceRef colorspace;
CGDataProviderRef data_provider;
CGImageRef cgimage;
CGDataProviderRelease (data_provider);
CGColorSpaceRelease (colorspace);
- _gdk_quartz_update_context_from_gc (context, gc);
+ gdk_quartz_update_context_from_gc (context, gc);
CGContextSetBlendMode (context, kCGBlendModeNormal);
CGContextDrawImage (context, CGRectMake (0, 0, image->width, image->height), cgimage);
CGImageRelease (cgimage);
- _gdk_quartz_drawable_release_context (drawable, context);
+ gdk_quartz_drawable_release_context (drawable, context);
}
static void
}
CGContextRef
-_gdk_quartz_drawable_get_context (GdkDrawable *drawable, gboolean antialias)
+gdk_quartz_drawable_get_context (GdkDrawable *drawable, gboolean antialias)
{
if (GDK_IS_WINDOW_IMPL_QUARTZ (drawable))
{
}
void
-_gdk_quartz_drawable_release_context (GdkDrawable *drawable, CGContextRef context)
+gdk_quartz_drawable_release_context (GdkDrawable *drawable, CGContextRef context)
{
if (!context)
return;